#!/bin/bash

# Created by Abel<zxz054321@163.com> on 2016/2/3.

sudo apt-get install software-properties-common
sudo apt-add-repository ppa:phalcon/stable
sudo apt-get update
sudo apt-get install php5-phalcon
sudo apt-get install libpcre3-dev

cd build && sudo chmod 777 install && sudo ./install
echo ""

echo "Now, please add this line in your php.ini"
echo "For example: extension=phalcon.so"
echo ""
echo "It is usually located in:"
echo "/usr/local/php/etc"
